package com.jiumi.common.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * @author yuanwei.zhai
 */
@Component
@ConfigurationProperties(prefix = "ali")
@Data
public class AliConfig {
    private static String AccessKeyId;
    private static String AccessKeySecret;
    private static String Bucket;
    private static String Endpoint;
    private static String imgPrefix;
    private static String STSEndpoint;
    private static String stsAccessKeyId;
    private static String stsAccessKeySecret;
    private static String stsRoleArn;
    private static String stsRoleSessionName;
    private static String stsRegionId;
    private static String policy;
    private static String ossRegion;


    public static String getOssRegion() {
        return ossRegion;
    }

    public  void setOssRegion(String ossRegion) {
        AliConfig.ossRegion = ossRegion;
    }

    public static String getPolicy() {
        return policy;
    }

    public  void setPolicy(String policy) {
        AliConfig.policy = policy;
    }

    public  void setStsAccessKeyId(String stsAccessKeyId) {
        AliConfig.stsAccessKeyId = stsAccessKeyId;
    }

    public  void setStsAccessKeySecret(String stsAccessKeySecret) {
        AliConfig.stsAccessKeySecret = stsAccessKeySecret;
    }

    public  void setStsRoleArn(String stsRoleArn) {
        AliConfig.stsRoleArn = stsRoleArn;
    }

    public  void setStsRoleSessionName(String stsRoleSessionName) {
        AliConfig.stsRoleSessionName = stsRoleSessionName;
    }

    public  void setStsRegionId(String stsRegionId) {
        AliConfig.stsRegionId = stsRegionId;
    }

    public static String getSTSEndpoint() {
        return STSEndpoint;
    }

    public void setSTSEndpoint(String STSEndpoint) {
        AliConfig.STSEndpoint = STSEndpoint;
    }

    public void setAccessKeyId(String accessKeyId) {
        AccessKeyId = accessKeyId;
    }

    public void setAccessKeySecret(String accessKeySecret) {
        AccessKeySecret = accessKeySecret;
    }

    public void setBucket(String bucket) {
        Bucket = bucket;
    }

    public void setEndpoint(String endpoint) {
        Endpoint = endpoint;
    }
    public void setImgPrefix(String imgPrefix) {
        AliConfig.imgPrefix = imgPrefix;
    }

    public static String getImgPrefix() {
        return imgPrefix;
    }



    public static String getAccessKeyId() {
        return AccessKeyId;
    }

    public static String getAccessKeySecret() {
        return AccessKeySecret;
    }

    public static String getBucket() {
        return Bucket;
    }

    public static String getEndpoint() {
        return Endpoint;
    }

    public static String getStsAccessKeyId() {
        return stsAccessKeyId;
    }

    public static String getStsAccessKeySecret() {
        return stsAccessKeySecret;
    }

    public static String getStsRoleArn() {
        return stsRoleArn;
    }

    public static String getStsRoleSessionName() {
        return stsRoleSessionName;
    }

    public static String getStsRegionId() {
        return stsRegionId;
    }
}
